package com.hfi.aop3;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @author ChangLiang
 * @date 2019/6/6
 */
@Component
@Aspect
public class ControllerAspect {

    @Around("execution(* com.hfi.controller.AopController.perform(..))")
    public String addCustomizedString(ProceedingJoinPoint pjp) throws Throwable {
        String proceed = (String) pjp.proceed();
        return proceed + " added";
    }
}